<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			{include file='../Common/hy_header.html'}
			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">刷新周期（秒）</label>
						<div class="am-u-sm-9">
							<input type="text" name="refreshtime" value="{$config['refreshtime']}" placeholder="10、15、30、60"/>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">弹幕速度系数</label>
						<div class="am-u-sm-9">
							<input type="text" name="coefficient" value="{$config['coefficient']}" placeholder="0.5-1.5" >
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">审核池总数（即审核总数）</label>
						<div class="am-u-sm-9">
							<input type="text" name="capacityPool" value="{$config['capacityPool']}" placeholder="40-180">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">弹幕池总数（即弹幕总数）</label>
						<div class="am-u-sm-9">
							<input type="text" name="chatPool" value="{$config['chatPool']}" placeholder="理想值是刷新周的2倍">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">容量池每页总数</label>
						<div class="am-u-sm-9">
							<input type="text" name="capacityPooleach" value="{$config['capacityPooleach']}" placeholder="20-50">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">审核抽取是否随机</label>
						<div class="am-u-sm-9">
							<input type="radio" {if $config.isOrderBy}{if $config.isOrderBy eq 0}checked="checked" {else}{/if}{else}checked="checked" {/if} name="isOrderBy" value="0" id="isOrderBy1">是
							<input type="radio" {if $config.isOrderBy eq 1}checked="checked" {else}{/if} name="isOrderBy" value="1" id="isOrderBy0">否
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">每分钟最多发言数</label>
						<div class="am-u-sm-9">
							<input type="text" name="commentMinuteMax" value="{$config['commentMinuteMax']}">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">每天单人最多发言数</label>
						<div class="am-u-sm-9">
							<input type="text" name="commentDayMax" value="{$config['commentDayMax']}">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">单次吐槽字数（包括符号）</label>
						<div class="am-u-sm-9">
							<input type="text" name="chatMaxNum" value="{$config['chatMaxNum']}">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">加精池到弹幕池最大数量</label>
						<div class="am-u-sm-9">
							<input type="text" name="digestNum" value="{$config['digestNum']}" placeholder="0-40">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">加精有效期（天）</label>
						<div class="am-u-sm-9">
							<input type="text" name="digestTime" value="{$config['digestTime']}" placeholder="">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">弹幕栏文字</label>
						<div class="am-u-sm-9">
							<input type="text" name="placeholder" value="{$config['placeholder']}">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">弹幕池为空，是否允许重复</label>
						<div class="am-u-sm-9">
							<input type="radio" {if $config.isRepeat}{if $config.isRepeat eq 1}checked="checked" {else}{/if}{else}checked="checked" {/if} name="isRepeat" value="1" id="isRepeat1">是
							<input type="radio" {if $config.isRepeat eq 0}checked="checked" {else}{/if} name="isRepeat" value="0" id="isRepeat0">否
						</div>
					</div>
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<button type="button" class="am-btn am-btn-primary hy-js-submit">{$_L.SAVE}</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		{include file='../Common/hy_footer.html'}
		<script type="text/javascript">
		   hy_submit('index.php?g=admin&m=chat&a=saveConfig');
		</script>
	</body>

</html>